package game.savecameron.collision;

import game.sprite.Projectile;
import game.sprite.collision.CollisionBehavior;
import game.sprite.collision.ICollidable;


public class BulletCollsionBehavior extends CollisionBehavior {

    private Projectile myCollidable;

    public BulletCollsionBehavior (Projectile collidable) {
        super(collidable);
        myCollidable = collidable;

    }

    @Override
    public void visit (ICollidable collidable) {
        myCollidable.setActive(false);
    }

}
